package com.ruoyi.qbms.mapper;

import java.util.List;

import com.ruoyi.qbms.domain.QbmsRecordAnswer;
import com.ruoyi.qbms.domain.QbmsRecordFavorite;

/**
 * 题库收藏记录Mapper接口
 * 
 * @author zouhuu
 * @date 2022-10-19
 */
public interface QbmsRecordFavoriteMapper 
{
    /**
     * 查询题库收藏记录
     * 
     * @param id 题库收藏记录主键
     * @return 题库收藏记录
     */
    public QbmsRecordFavorite selectQbmsRecordFavoriteById(Long id);

    /**
     * 查询题库收藏记录列表
     * 
     * @param qbmsRecordFavorite 题库收藏记录
     * @return 题库收藏记录集合
     */
    public List<QbmsRecordFavorite> selectQbmsRecordFavoriteList(QbmsRecordFavorite qbmsRecordFavorite);

    /**
     * 查询数量
     * @param qbmsRecordFavorite
     * @return
     */
    public int selectNums(QbmsRecordFavorite qbmsRecordFavorite);

    /**
     * 新增题库收藏记录
     * 
     * @param qbmsRecordFavorite 题库收藏记录
     * @return 结果
     */
    public int insertQbmsRecordFavorite(QbmsRecordFavorite qbmsRecordFavorite);

    /**
     * 修改题库收藏记录
     * 
     * @param qbmsRecordFavorite 题库收藏记录
     * @return 结果
     */
    public int updateQbmsRecordFavorite(QbmsRecordFavorite qbmsRecordFavorite);

    /**
     * 删除题库收藏记录
     * 
     * @param id 题库收藏记录主键
     * @return 结果
     */
    public int deleteQbmsRecordFavoriteById(Long id);

    /**
     * 批量删除题库收藏记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteQbmsRecordFavoriteByIds(Long[] ids);
}
